package com.green.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.green.system.common.DataGridView;
import com.green.system.domain.Role;
import com.green.system.vo.RoleVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Author: Green
 * @Date: 2021/10/30/15:37
 * @Description: 
 */


public interface RoleService extends IService<Role>{


    DataGridView queryAllRole(RoleVo roleVo);

    Role saveRole(Role role);

    Role updateRole(Role role);

    List<Integer> queryMenuIdsByRid(Integer id);

    void saveRoleMenu(Integer rid, Integer[] mids);

    DataGridView queryAllAvailableRoleNoPage(RoleVo roleVo);

    List<String> queryRoleNamesByUserId(Integer id);
}
